# Copyright (c) 2021 by Amazinite
#
# Endless Sky is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later version.
#
# Endless Sky is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <https://www.gnu.org/licenses/>.

outfit "Locust Blaster"
	"display name" "ローカスト・ブラスター"
	plural "ローカスト・ブラスター"
	category "Guns"
	series "Guns"
	index 10010
	cost 284000
	thumbnail "outfit/locust blaster"
	"mass" 7
	"outfit space" -7
	"weapon capacity" -7
	"gun ports" -1
	weapon
		sprite "projectile/locust blaster"
		sound "locust blaster"
		"hit effect" "bullet impact"
		"hardpoint offset" 20
		"inaccuracy" 5
		"velocity" 10
		"random velocity" 2
		"lifetime" 40
		"reload" 3
		"firing energy" 4
		"firing heat" 3
		"shield damage" 5
		"hull damage" 4
	description "ローカスト・ブラスターは小さく見えるが、その大きさに対する破壊力は馬鹿にできない。一門で毎分1,200発を撃ち続けられる。一発一発の威力はごくわずかだが、その弾の奔流は、どれほど大きな船でもいずれずたずたに引き裂いてしまう。"

outfit "Locust Turret"
	"display name" "ローカスト砲塔"
	plural "ローカスト砲塔"
	category "Turrets"
	series "Turrets"
	index 10010
	cost 1265000
	thumbnail "outfit/locust turret"
	"mass" 28
	"outfit space" -28
	"weapon capacity" -28
	"turret mounts" -1
	weapon
		sprite "projectile/locust blaster"
		"hardpoint sprite" "hardpoint/locust turret"
		"hardpoint offset" 40
		sound "locust blaster"
		"hit effect" "bullet impact"
		"inaccuracy" 5
		"turret turn" 3.7
		"velocity" 10
		"random velocity" 2
		"lifetime" 40
		"reload" 1
		"firing energy" 4
		"firing heat" 3
		"shield damage" 5
		"hull damage" 4
	description "ブンロディアの船はたいてい前方固定砲の火力を頼りにし、砲塔枠は対ミサイルシステムで埋めてしまうが、彼らはローカスト・ブラスター用の砲塔も作り上げた。この砲塔は三門のローカスト・ブラスターを一斉に撃ち、毎分3,600発という驚くべき量の弾を標的に浴びせる。"



outfit "Mandible Cannon"
	"display name" "マンディブル・キャノン"
	plural "マンディブル・キャノン"
	category "Guns"
	series "Guns"
	index 10020
	cost 1170000
	thumbnail "outfit/mandible cannon"
	"mass" 29
	"outfit space" -29
	"weapon capacity" -29
	"gun ports" -1
	weapon
		sprite "projectile/mandible cannon"
			"frame rate" 10
			"random start frame"
		sound "mandible cannon"
		"hit effect" "proton impact"
		"inaccuracy" .1
		"velocity" 34
		"lifetime" 25
		"reload" 30
		"burst reload" 5
		"burst count" 2
		"firing energy" 111
		"firing force" 30
		"firing heat" 60
		"hit force" 210
		"shield damage" 152
		"hull damage" 98
	description "マンディブル・キャノンは使い勝手のよさから、ブンロディアの兵装の中でも重要な位置を占めている。射程は小型の武器より長く、大きさも手頃なので、たいていのブンロディア船に何門もまとめて積める。ただし発射に食う電力はかなりのもので、太陽電池に頼る船にはとくに厳しい。"



outfit "Thorax Cannon"
	"display name" "ソラックス・キャノン"
	plural "ソラックス・キャノン"
	category "Guns"
	series "Guns"
	index 10030
	cost 3484000
	thumbnail "outfit/thorax cannon"
	"mass" 105
	"outfit space" -105
	"weapon capacity" -105
	"gun ports" -1
	"energy capacity" 7000
	weapon
		sprite "projectile/thorax cannon"
			"frame rate" 15
			"rewind"
		sound "thorax cannon"
		"fire effect" "torpedo fire"
		"live effect" "yellow spark" 140
		"live effect" "yellow spark trail" 840
		"live effect" "yellow spark twinkle" 400
		"hit effect" "finisher impact" 2
		"hit effect" "yellow spark" 10
		"hit effect" "yellow spark fragment" 150
		"inaccuracy" 0
		"velocity" 15
		"lifetime" 120
		"reload" 240
		"firing energy" 3150
		"firing force" 1875
		"firing heat" 1905
		"hit force" 3750
		"shield damage" 2870
		"hull damage" 3430
	description "ソラックス・キャノンは巨大で連射の利かない武器であり、その大きさに加えて発射に要する電力のせいで、積める船はごくわずかだ。重い電力負担を少しでも和らげるため、専用の蓄電器を備えている。"

effect "yellow spark"
	sprite "effect/yellow spark"
		"no repeat"
		"frame rate" 8
	"lifetime" 30
	"random angle" 360
	"random spin" 3
	"random velocity" 0.1
	"velocity scale" -0.5

effect "yellow spark trail"
	sprite "effect/yellow spark"
		"no repeat"
		"frame rate" 2
	"lifetime" 20
	"random angle" 360
	"random frame rate" 6
	"random velocity" 5
	"random spin" 10
	"velocity scale" 0.2
	
effect "yellow spark twinkle"
	sprite "effect/yellow spark"
		"no repeat"
		"frame rate" 6
	"lifetime" 20
	"random angle" 360
	"random velocity" 3
	"random spin" 10
	"velocity scale" 0.1

effect "yellow spark fragment"
	sprite "effect/yellow spark"
		"no repeat"
		"frame rate" 4
	"lifetime" 5
	"random angle" 360
	"random velocity" 6
	"random spin" 10
	"velocity scale" -0.1



outfit "Swarm Clip"
	"display name" "スウォーム弾倉"
	plural "スウォーム弾倉"
	category "Ammunition"
	series "Ammunition"
	index 10011
	cost 24000
	thumbnail "outfit/swarm storage"
	"mass" 1
	"outfit space" -7
	"swarm capacity" 200
	ammo "Swarm Missile"
	description "スウォーム弾倉はスウォーム発射機の搭載弾数を大きく増やす。200発というまずまずの数を収め、発射機の弾倉が空になればすぐに次を送り込める。"

outfit "Swarm Missile"
	"display name" "スウォームミサイル"
	plural "スウォームミサイル"
	category "Ammunition"
	series "Ammunition"
	index 10010
	cost 250
	thumbnail "outfit/swarm missile"
	"mass" 0.03
	"swarm capacity" -1
	description "スウォームミサイルは、スウォーム発射機のための小型で高速な弾だ。"

outfit "Swarm Pod"
	"display name" "スウォーム発射機"
	plural "スウォーム発射機"
	category "Secondary Weapons"
	series "Secondary Weapons"
	index 10010
	cost 363000
	thumbnail "outfit/swarm pod"
	"mass" 3
	"outfit space" -15
	"weapon capacity" -15
	"gun ports" -1
	"swarm capacity" 400
	weapon
		sprite "effect/swarm"
			"frame rate" .01
		sound "swarm missile"
		ammo "Swarm Missile"
		icon "icon/swarm"
		"die effect" "missile death"
		"hit effect" "particle impact"
		"live effect" "swarm flare" 1000000
		"inaccuracy" 90
		"velocity" 13
		"lifetime" 460
		"reload" 10
		"firing energy" 2
		"firing heat" 1
		"acceleration" 1.3
		"drag" .1
		"turn" 5.35
		"homing"
		"radar tracking" 0.2
		"optical tracking" 0.6
		"shield damage" 46
		"hull damage" 24
		"missile strength" 8
		"stream"
	description "スウォーム発射機は、コラースとの初期の戦いで、当時のコラースの対ミサイル防御を物量で押し切る有効な武器だった。だがブンロディアがコラースの兵器に対抗する技術を磨いたように、コラースもまた同じことをし、自前の速射対ミサイル砲塔を作り上げた。そのため、一部のコラース船に対してはスウォーム発射機の効き目が薄れてしまった。"
	description "	この武器の弾薬はどの装備店でも補充できる。"
		to display
			has "gamerule: universal ammo restocking"

effect "swarm flare"
	sprite "effect/swarm"
		"no repeat"
		"frame rate" 5
	"lifetime" 40
	"velocity scale" 0.1

effect "swarm impact"
	sprite "effect/particle impact"
		"no repeat"
		"frame rate" 30
	sound "explosion tiny"
	"lifetime" 20
	"random angle" 2
	"random spin" 10
	"velocity scale" -.05

outfitter "Swarm Missile Restock"
	to sell
		has "gamerule: universal ammo restocking"
		or
			has "outfit: Swarm Pod"
			has "outfit: Swarm Clip"
	location
		attributes "outfitter"
	stock
		"Swarm Missile"


outfit "Buzzer Anti-Missile"
	"display name" "バザー対ミサイル"
	plural "バザー対ミサイル"
	category "Turrets"
	series "Anti-Missile"
	index 10010
	cost 1195000
	thumbnail "outfit/buzzer"
	"mass" 19
	"outfit space" -19
	"weapon capacity" -19
	"turret mounts" -1
	weapon
		"hardpoint sprite" "hardpoint/buzzer am"
		"hardpoint offset" 5
		"hit effect" "buzzer"
		"anti-missile" 4
		"velocity" 300
		"lifetime" 1
		"reload" 2.5
		"firing energy" 16
		"firing heat" 1
	description "コラースが星系を機雷で埋め尽くしはじめると、ブンロディアの戦闘機の働きは大きく落ち込んだ。これに応えてブンロディアが作り上げたのがこの速射対ミサイル砲塔で、目にも留まらぬ速さで星系の一帯からコラースの機雷を掃き出してしまう。"

effect "buzzer"
	sprite "effect/buzzer am"
		"no repeat"
		"frame rate" 10
	sound "buzzer am"
	"sound category" "anti-missile"
	"lifetime" 11
	"velocity scale" 1
